package org.shan.lf.pojo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by amanda.shan on 2019-07-27.
 */
@ApiModel("用户注册提交的参数")
@Data
public class DoctorRegisterForm {

    @NotBlank
    @ApiModelProperty(value = "用户名")
    private String username;

    @NotBlank
    @ApiModelProperty(value = "密码")
    private String password;

    @NotNull
    @ApiModelProperty(value = "身份信息", example = "1")
    private Integer identity;

    @NotBlank
    @ApiModelProperty(value = "邀请码")
    private String invitationCode;

}
